package com.zr.entity;

import lombok.Data;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * @author: peterChen
 * @date: 2019/11/12 14:43
 * @description: com.zr.entity
 * @version: 1.0
 */
@Data
@Table(name = "t_user")
public class User {
    @Id
    @KeySql(useGeneratedKeys = true)
    private Long id;
    private String username;
    private String password;
    private String token;
    private String introduction;
    private String role;
    private String name;
    private String uid;
    private Date createTime;
    private Date updateTime;

    public User() {
    }

    public User(Long id, String username, String password, String token, String introduction, String role, String name, String uid, Date createTime, Date updateTime) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.token = token;
        this.introduction = introduction;
        this.role = role;
        this.name = name;
        this.uid = uid;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }
}
